class {
  onMount() {
    window.nestedChild = this;
  }
}

<div key="div">Nested Child</div>
